<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var weight = +prompt("输入体重(整数)")
    var height= +prompt("输入身高(整数)")
    var n = (height-108)*2
    if(n > weight - 10 && n < weight + 10){
        console.log("体重合格")
    }
    else{
        console.log("体重不合格")
    }
</script>